<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>this</title>
</head>

<body>
    <script type="text/javascript">

        var name = 'outer'
        const name1 = 'outer1'

        const obj = {
            name: 'inner',
            get: function () {
                console.log(111, this, this.name)
            },
            get1() {
                console.log(111, this, this.name)
            },
            get2: () => {
                console.log(111, this, this.name)
            }
        };
        obj.get()
        obj.get1()
        obj.get2()
        console.log('name1',window.name1)

    </script>
</body>

</html>